package com.geostart.constructionland.system.service;

import com.geostar.constructionland.common.entity.response.ExtJsAjaxResponse;
import com.geostar.constructionland.common.entity.statistics.PostAnalyse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 后置分析服务Feigh客户端
 *
 * @Author makoto_zhu
 * @Date `2020-12-11 04:07:49`
 * @Description
 **/
@FeignClient(name = "constructionland-statistics")
public interface PostAnalyseFeignClient {
    @RequestMapping(value = "/postAnalyse/list", method = RequestMethod.POST)
    ExtJsAjaxResponse udqList(@RequestParam(value = "page") int pageNo, @RequestParam(value = "limit") int pageNum, @RequestParam(value = "query_param_task_id", required = false) String query_param_task_id);

    @RequestMapping(value = "/postAnalyse/delete", method = RequestMethod.POST)
    ExtJsAjaxResponse udqDelete(@RequestParam("id") String id);

    @RequestMapping(value = "/postAnalyse/add", method = RequestMethod.POST, consumes = "application/json")
    ExtJsAjaxResponse udqAdd(@RequestBody PostAnalyse postAnalyse);

    @RequestMapping(value = "/postAnalyse/update", method = RequestMethod.POST, consumes = "application/json")
    ExtJsAjaxResponse udqUpdate(@RequestBody PostAnalyse postAnalyse);
}
